﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2021_6_4
{
    class Player : IJanKenPunch_
    {
        private string playerName;
        janKenPunch playerAction;
        public string PlayerName { get => playerName; set => playerName = value; }

        public Player(string name)
        {
            PlayerName = name;
        }

        public janKenPunch DoJanKenPunch(int key)
        {
            playerAction = (janKenPunch)(key);
            return (janKenPunch)(key);
        }

        public janKenPunch DoJanKenPunch()
        {
            throw new NotImplementedException();
        }

        public override string ToString()
        {
            return $"{playerName}:{playerAction}";
        }
    }
}
